package com.cheer.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author cheer
 */
@Data
public class MallAddressUpdateDTO {

    @NotNull(message = "收货地址Id不能为空")
    private Long id;

    @NotBlank(message = "收货人不能为空")
    @Length(max = 20, message = "收货人字符数不能超过20")
    private String receiver;

    @NotBlank(message = "联系电话不能为空")
    @Length(max = 20, message = "联系电话字符数不能超过20")
    private String phone;

    private String province;

    private String city;

    private String region;

    private String address;

    private Integer isDefault;

    private String areaCode;
}
